<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      h3 {
        height: 60px;
        background-color: #ddd;
        line-height: 50px;
      }

      h3 > img {
        height: 40px;
        width: 50px;
        vertical-align: middle;
      }

      table {
        height: 100px;
      }
      table tr td {
        border: 1px solid #000;
      }
      .baseline {
        vertical-align: baseline;
      }
      .top {
        vertical-align: top;
      }
      .middle {
        vertical-align: middle;
      }
      .bottom {
        vertical-align: bottom;
      }
    </style>
  </head>
  <body>
    <h3><img src="./海绵宝宝.jpg" class="img" />x我是海绵宝宝</h3>
    <table>
      <tr>
        <td class="baseline">baseline</td>
        <td class="top">top</td>
        <td class="middle">middle</td>
        <td class="bottom">bottom</td>
      </tr>
    </table>
  </body>
</html>
